package com.qianyu.project.mapper;

import com.qianyu.project.entity.ProjectInfo;
import com.qianyu.project.entity.ProjectStatus;
import com.qianyu.project.mapper.provider.zy.ZYProjectInfoProvider;
import com.qianyu.project.mapper.provider.zy.ZYProjectStatusProvider;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.SelectProvider;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface ProjectStatusMapper {
    @SelectProvider(method = "getPStatus",type = ZYProjectStatusProvider.class)
    List<ProjectStatus> getPStatus(ProjectStatus ps);//ProjectStatus ps

    @Delete("delete from project_info where id=#{value}")
    void delStatus(String id);

    @SelectProvider(method = "getStatuByid",type = ZYProjectStatusProvider.class)
    ProjectStatus getStatuByid(String sid);

    @Insert("insert into project_status values(null,)")
    void addStatus(ProjectStatus ps);
}
